package com.ghy.mapper;

import com.ghy.entity.EbComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {

    List<EbComment> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);

    public int save(EbComment ebComment);

    /**
     * 根据新闻的主键进行更新新闻信息
     * @param ebComment 更新的新闻对象
     * @return
     */
    Integer updateByPrimaryKey(EbComment ebComment);

    Integer getMaxPage(Integer pageSize);
    EbComment selectOne(Integer ecId);
    int remove(int ecId);
}

